<template>
      <div class="welcome">
          <h1>欢迎来到中国青年志愿网——上海海洋大学社会实践平台</h1>
          <div class="choose">
               <p>请选择您的身份：</p>
                <a @click="studentlogin">学生</a>
                <a @click="teacherlogin">老师</a>
                <a @click="adminlogin">管理员</a>
                <span @click="register">还没有账号?，点击去注册</span>
          </div>
      </div>
</template>

<script>
export default {
    methods:{
        studentlogin(){
            this.router.push("/StudentLogin");
        },
        teacherlogin(){
            this.router.push("/TeacherLogin");
        },
        adminlogin(){
            this.router.push("/AdminLogin");
        },
        register(){
        this.router.push('/register');
        }


    }
}
</script>

<style>
*{
    padding: 0;
    margin: 0;
}
.choose{
    position: relative;
    top:200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    left: 35%;
    width: 400px;
    height: 400px;
    font-size: 30px;
    font-weight: bold;
    border: solid 2px white;
    box-shadow: 0 0 20px white ;
    background-color: white;
    opacity: 0.7;
}
.choose span{
    font-size:14px;
    color: grey;
    cursor: pointer;
    text-decoration: underline;
}
a:hover{
    font-size: 50px;
    cursor: pointer;
}
.welcome{
    height: 100%;
    width: 100%;
    background-image: url('../assets/上海海洋大学.png') ;
    background-size:1600px 800px;
    
    
}
.welcome h1{
    position: relative;
    top:50px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    font-size: 50px;
    color: rgb(78, 78, 87);
    font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}
</style>